package cn.kgm.template.dto.dto;

import cn.kgm.template.dto.base.TemplateEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;import lombok.*;
import lombok.experimental.SuperBuilder;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * # 技术改变自己 #
 * 模板数据,滑动按钮类型类型
 *
 * @author kapp-i
 * @date 2024-03-18 14:47:46
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "TemplateButtonSaveDTO", description = "模板数据,滑动按钮类型类型")
public class TemplateButtonSaveDTO extends TemplateEntity<Long> {

    /**
     * 模板ID
     */
    @ApiModelProperty(value = "模板ID", position = 3)
    @NotNull(message = "模板ID不能为空")
    private Long infoId;

    /**
     * 是否选中,1,选中,0,未选中
     */
    @ApiModelProperty(value = "是否选中,1,选中,0,未选中", position = 4)
    @Size(max = 4, message = "是否选中,1,选中,0,未选中长度不能超过4")
    @NotBlank(message = "是否选中,1,选中,0,未选中不能为空")
    private String value;

}
